package jaran.Tomxk.jdbc;

import com.mysql.jdbc.Driver;

import java.sql.DriverManager;

public class AppJdbc {
    public static void main(String[] args) throws Exception{
        //com.mysql.jdbc.Driver
        Class.forName("com.mysql.jdbc.Driver");
        String url = "jdbc:mysql://localhost:3306/test?useSSL=false";//JDBC连接数据库url固定格式
        String username = "root";
        String password = "123456";

        DriverManager.getConnection(url,username,password);
        System.out.println("连接完成");


    }
}
